package com.red.mapper;

import com.red.pojo.entity.House;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface HouseMapper {

    int insertHouse(House house);

    House selectHouseByID(@Param("houseId") int houseId);

    List<House> selectHouseList(@Param("house") House house, @Param("offset") int offset, @Param("size") int size);

    int selectHouseCount(House house);

    int deleteHouseByID(@Param("houseId") int houseId);

    int updateHouse(House house);

    List<Map<String, Object>> pushHouse(@Param("userId") int userId);
}
